package ic.doc.co2nudge.client.utils.events;

import java.util.HashMap;

import ic.doc.co2nudge.shared.GraphType;

public class StatisticalDataEvent extends DataEvent {

	private GraphType graphType;
	private HashMap<String, Double> statdata;
	
	public StatisticalDataEvent() {
		super(false);
	}
	
	public StatisticalDataEvent(Boolean isCompletedSuccessfully) {
		super(isCompletedSuccessfully);
	}
	
	public StatisticalDataEvent(Boolean isCompletedSuccessfully,
			 HashMap<String, Double> statdata) {
		super(isCompletedSuccessfully);
		setStatData(statdata);
	}
	
	public StatisticalDataEvent(Boolean isCompletedSuccessfully,
			 HashMap<String, Double> statdata, GraphType type) {
		super(isCompletedSuccessfully);
		setStatData(statdata);
		setGraphType(type);
	}
	
	public GraphType getGraphType(){
		return graphType;
	}
	
	public void setGraphType(GraphType type){
		this.graphType=type;
	}
	
	public  HashMap<String, Double> getStatData(){
		return this.statdata;
	}
	
	public void setStatData( HashMap<String, Double> collection){
		this.statdata=collection;
	}
}
